package com.bit.springiocdemo.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RequestMapping("/logger2")
@RestController
public class LoggerController2 {
    @RequestMapping("/print")
    public String print() {
        log.info("我打印日志----logger");

        log.error("我是error级别日志");
        log.warn("我是warn级别日志");
        log.debug("我是debug级别日志");
        log.trace("我是trace级别日志");
        log.info("我是info级别日志");
        return "1";
    }
}
